home *** CD-ROM | disk | FTP | other *** search
/ Amiga Plus 2002 #11 / Amiga Plus CD - 2002 - No. 11.iso / Tools / ShareMailGiftware / AmigaTalk / testfiles / TestClipBoard < prev    next >
Text File  |  2002-10-27  |  524b  |  26 lines

  1. cb0 <- ClipBoard new: 0
  2.  
  3. cb0 postAsciiStringToClip:    'This is a test string!'
  4.  
  5. cb0 writeFTXTClipToASCIIFile: 'RAM:CheckCB0ascii'
  6.  
  7. cb0 postAsciiFileToClip:      'Amigatalk:TestFiles/TestClipBoard'
  8.  
  9. cb0 clipTypeIs
  10.  
  11. 'cb0 should be #FTXT' print
  12.  
  13. cb0 writeFTXTClipToFTXTFile:  'RAM:CheckCB0FTXT'
  14.  
  15. "Do NOT use the same clip for ILBM, the program will hang!!"
  16.  
  17. cb1 <- ClipBoard new: 1
  18.  
  19. cb1 postILBMFileToClip:  'AmigaTalk:C/AmigaTalk.iff'
  20.  
  21. cb1 clipTypeIs
  22.  
  23. 'cb1 should be #ILBM' print
  24.  
  25. cb1 writeILBMClipToFile: 'RAM:CheckCB1ILBM'
  26.